from django.contrib import admin
from .models import ScenicSpot

class ScenicSpotAdmin(admin.ModelAdmin):
    list_display = ('title', 'address', 'created_at')
    prepopulated_fields = {'slug': ('title',)}
    readonly_fields = ('created_at', 'updated_at')

admin.site.register(ScenicSpot, ScenicSpotAdmin)